package cn.zymall.dict.service.impl;

import cn.zymall.common.model.SysDict;
import cn.zymall.dict.mapper.DictMapper;
import cn.zymall.dict.service.DictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: DictServiceImpl
 * @Description: TODO
 * @author: 欧泽昌
 * @date: 2020/8/21 10:20
 * @version: V1.0
 */
@Service("DictService")
public class DictServiceImpl extends ServiceImpl<DictMapper, SysDict> implements DictService {
	@Autowired
	DictMapper dictMapper;

	@Override
	public int batchUpdate(List<SysDict> list) {
		return dictMapper.batchUpdate(list);
	}

	@Override
	public List<SysDict> queryName(String name){
		return dictMapper.queryName(name);
	};
}
